package LuoGu;

import java.util.ArrayList;
import java.util.Scanner;

public class Demo2 {

    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        String input=s.next();
        while(true){
            if (input.indexOf('E') != -1) {
                break;
            }
            input=input+s.next();
        }
        int hScore=0,oScore=0;
        for(int i=0;i<input.length()-1;i++){
            if(input.charAt(i)=='W'){
                hScore++;
            }else if(input.charAt(i)=='L'){
                oScore++;
            }else if(input.charAt(i)=='E'){
                break;
            }
            if(hScore>=11||oScore>=11){
                if(Math.abs(hScore-oScore)>=2) {
                    System.out.println(hScore + ":" + oScore);
                    hScore = 0;
                    oScore = 0;
                }
            }
        }
        System.out.println(hScore+":"+oScore);
        System.out.println();
        hScore=0;
        oScore=0;
        for(int i=0;i<input.length()-1;i++){
            if(input.charAt(i)=='W'){
                hScore++;
            }else if(input.charAt(i)=='L'){
                oScore++;
            }else if(input.charAt(i)=='E'){
                break;
            }
            if(hScore>=21||oScore>=21){
                if(Math.abs(hScore-oScore)>=2) {
                    System.out.println(hScore + ":" + oScore);
                    hScore = 0;
                    oScore = 0;
                }
            }
        }
        System.out.print(hScore+":"+oScore);


    }

}
